<?php
	$arrBairros = ( isset($arrBairros) )? $arrBairros: array();
	$msgErro    = ( isset($msgErro) )? $msgErro: '';
?>
	<span id="msgErro" >
		<?php echo $msgErro; ?>
	</span>
	<form action="<?php echo url::site( $action ); ?>" method="post">
		<table>
			<tr>
				<td>
					<label for="txtLogradouro">Logradouro:</label>
				</td>
				<td>
					<input type="text" name="txtLogradouro" id="txtLogradouro" size="16" />
				</td>
			</tr>
			<tr>
				<td>
					<label for="cobBairro">Bairro:</label>
				</td>
				<td>
					<select name="cobBairro" id="cobBairro">
						<option value="0"></option>
						<?php
							foreach ( $arrBairros as $bairro ) {
								echo '<option value="'.  $bairro['codbairro'] .'">'. $bairro['nomebairro'] .'</option>';
							}
						?>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="submit" value="Pesquisar" />
				</td>
			</tr>
		</table>
	</form>
